package DesignPattern.Behavior.Interpreter;

import java.util.HashMap;
import java.util.Map;

public class Context {

    private Map<Variable, Integer> variables = new HashMap<>();

    public void assign(Variable variable, Integer value) {
        variables.put(variable, value);
    }

    public Integer getValue(Variable variable) {
        return variables.get(variable);
    }
}
